Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

country: two-way binding #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

country: two-way binding #82

wants to merge 2 commits into from

Conversation

Zaitsev
Copy link

@Zaitsev Zaitsev commented Nov 25, 2015

First commit will update country in controller with intlTelInput current country iso-2 code (on flag select or when user type number)
Second commit is to update intlTelInput to latest 6.4.3(it uses cookies to reduce api-calls to geoIP DB)

when
ipnConfig.defaultCountry = 'auto';
I have to add

         ipnConfig.geoIpLookup= function (callback) {
                $.get('http://ipinfo.io', function () {
                }, "jsonp").always(function (resp) {
                    var countryCode = (resp && resp.country) ? resp.country : "";
                    callback(countryCode);
                });
            };

may be we can add this as default and with angular $http ?

@mareczek
Copy link
Owner

I'll take a look at it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants